package com.showdoc.mapper.impl;

import com.showdoc.mapper.TeamMapper;
import com.showdoc.pojo.Team;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class TeamMapperImpl implements TeamMapper {
    @Autowired
    private TeamMapper teamMapper;

    @Override
    public List<Team> selectAll() {
        return teamMapper.selectAll();
    }

    @Override
    public List<Team> selectByLedID(Long userId) {
        return teamMapper.selectByLedID(userId);
    }

    @Override
    public Team selectById(long id) {
        return teamMapper.selectById(id);
    }

    @Override
    public void save(Team team) {
        this.save(team);
    }

    @Override
    public Team selectByName(String teamName) {
        return teamMapper.selectByName(teamName);
    }
}
